AM_CPPFLAGS = \
	-I$(top_srcdir) \
	-DG_LOG_DOMAIN=\"xfce4-wckbuttons-plugin\" \
	-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
	$(PLATFORM_CPPFLAGS)

#
# Windowck Buttons plugin
#
plugin_LTLIBRARIES = \
	libwckbuttons.la

plugindir = \
	$(libdir)/xfce4/panel/plugins

libwindowck_built_sources = \
	wckbuttons-dialogs_ui.h

libwckbuttons_la_SOURCES = \
	$(libwckbuttons_built_sources) \
	wckbuttons.c \
	wckbuttons.h \
	theme.c \
	theme.h \
	wckbuttons-dialogs.c \
	wckbuttons-dialogs.h

libwckbuttons_la_CFLAGS = \
	$(LIBXFCE4UTIL_CFLAGS) \
	$(LIBXFCE4UI_CFLAGS) \
	$(LIBXFCE4PANEL_CFLAGS) \
	$(LIBWNCK_CFLAGS) \
	$(PLATFORM_CFLAGS) \
	-DDATADIR=\"$(datadir)\"

libwckbuttons_la_LDFLAGS = \
       -avoid-version \
       -module \
       -no-undefined \
       -export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \
       $(PLATFORM_LDFLAGS)

libwckbuttons_la_LIBADD = \
	$(top_builddir)/common/libwck-common.la \
	$(LIBXFCE4UTIL_LIBS) \
	$(LIBXFCE4UI_LIBS) \
	$(LIBWNCK_LIBS) \
	$(LIBXFCE4PANEL_LIBS)

libactions_la_DEPENDENCIES = \
	$(top_builddir)/common/libwck-common.la

#
# Desktop file
#
desktopdir =								\
	$(datadir)/xfce4/panel/plugins

desktop_DATA =								\
	wckbuttons.desktop

@INTLTOOL_DESKTOP_RULE@

EXTRA_DIST =								\
	wckbuttons-dialogs.glade                                          \
	wckbuttons.desktop.in

CLEANFILES =								\
	$(desktop_DATA)

BUILT_SOURCES = \
	$(libwindowck_built_sources)

CLEANFILES += \
	$(libwindowck_built_sources)

wckbuttons-dialogs_ui.h: wckbuttons-dialogs.glade
	$(AM_V_GEN) exo-csource --static --strip-comments --strip-content --name=wckbuttons_dialogs_ui $< >$@

# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
